# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test11.4
# Description:
# Author:       ASUS
# Date:         2019/3/25
#-------------------------------------------------------------------------------


import re
s = "bin."
m = re.match(s,"bind")
if m is not None:
    print(m.group())
m = re.match(s,"bin")       #“.”表示匹配任意单个字符
print(m)

m = re.search(s,"<bind>")
print(m.group())
print(m)

s1 = "3.14"
s2 = "3\.14"
m = re.match(s1,"3.14")            #点字符同样是一个字符
print(m)
m = re.match(s1,"3314")
print(m)

m = re.match(s2,"3.14")
print(m)
m = re.match(s2,"3314")
print(m)